#ifndef COMMON_H
#define COMMON_H

#include <QWidget>
class Common :public QWidget{
    Q_OBJECT
public:
    Common();
    bool createMessageBox(QWidget *widget,const QString type,const QString msg);
    bool createMessageBox2(const QString type,const QString msg);
    QString getDateTime(const QString datetime,int days=0);
    QString getRandomDoubleStr(double min,double max, int a,bool percent=false);
    double getRandomDouble(double min,double max);
    QString getRandomIntStr(int min ,int max ,bool percent=false);
    int getRandomInt(int min ,int max);
    bool matchRegularExpression(const QString format,const QString text);
    void loadQssfromfile(QWidget *widget,const QString filePath);


private:

};

#endif // COMMON_H
